package com.jzqf.ndk.jni;

import com.jzqf.ndk.model.Person;

import java.util.List;

public class Ndk {
    public Ndk() {
    }

    // Used to load the 'native-lib' library on application startup.
    static {
        System.loadLibrary("native-lib");
    }

    /**
     * A native method that is implemented by the 'native-lib' native library,
     * which is packaged with this application.
     */
    public native String getTypeString(String content);

    public native boolean getTypeBoolean(boolean isOk);

    public native char getTypeChar(char cha);

    public native double getTypeDouble(double number);

    public native int getTypeInt(int age);

    public native float getTypeFloat(float score);

    public native short getTypeShort(short length);

    public native long getTypeLong(long unixTime);

    public native byte getTypeByte(byte by);

    public native byte[] getTypeBytes(byte[] bytes);

    public native String[] getTypeStringArray(String[] strings);

    public native List<String> getTypeList(List<String> stringList);

    public native Person getTypeObject(Person person);

    public native List<Person> getTypeObjects(List<Person> personList);
}
